package com.xlx.openLink.entity.device;

import java.io.Serializable;
import java.util.List;
import java.util.Vector;

/**
 * @author seven
 * @create 2019-06-17 10:14
 **/
public class DeviceTypeInfo implements Serializable {
    private String deviceProductType = "";
    private String logicType = "";
    private List<String> typeOIDCharacter = new Vector();
    private List<String> typeDescCharacter = new Vector();
    public static final DeviceTypeInfo UnkownType = new DeviceTypeInfo();
    public static final DeviceTypeInfo SwitchType = new DeviceTypeInfo();
    public static final DeviceTypeInfo RouterType = new DeviceTypeInfo();
    public static final DeviceTypeInfo RouterSwitchType = new DeviceTypeInfo();
    public static final DeviceTypeInfo ComputerType = new DeviceTypeInfo();

    static {
       UnkownType.setDeviceProductType("其他设备类型");
       UnkownType.setLogicType("其他设备类型");
       SwitchType.setDeviceProductType("交换机");
       SwitchType.setLogicType("交换机");
       RouterType.setDeviceProductType("路由器");
       RouterType.setLogicType("路由器");
       RouterSwitchType.setDeviceProductType("路由交换机");
       RouterSwitchType.setLogicType("路由交换机");
       ComputerType.setDeviceProductType("计算机");
       ComputerType.setLogicType("计算机");
    }

    public DeviceTypeInfo() {
    }

    public String toString() {
        return this.deviceProductType;
    }

    public boolean equals(Object var1) {
        if (var1 instanceof DeviceTypeInfo) {
            DeviceTypeInfo var2 = (DeviceTypeInfo) var1;
            if (this.getDeviceProductType().equals(var2.getDeviceProductType())) {
                return true;
            }
        }

        return false;
    }

    public boolean equalsLogicType(Object var1) {
        if (var1 instanceof DeviceTypeInfo) {
            DeviceTypeInfo var2 = (DeviceTypeInfo) var1;
            if (this.getLogicType().equalsIgnoreCase(var2.getLogicType())) {
                return true;
            }
        }

        return false;
    }

    public int hashCode() {
        return this.deviceProductType.hashCode();
    }

    public void setDeviceProductType(String var1) {
        this.deviceProductType = var1;
    }

    public String getDeviceProductType() {
        return this.deviceProductType;
    }

    public void setLogicType(String var1) {
        this.logicType = var1;
    }

    public String getLogicType() {
        return this.logicType;
    }

    public void setTypeOIDCharacter(List<String> var1) {
        this.typeOIDCharacter = var1;
    }

    public List<String> getTypeOIDCharacter() {
        return this.typeOIDCharacter;
    }

    public void setTypeDescCharacter(List<String> var1) {
        this.typeDescCharacter = var1;
    }

    public List<String> getTypeDescCharacter() {
        return this.typeDescCharacter;
    }
}